The authors propose C&W-SP model — a text sentiment analysis model based on the representation learning. Firstly, an improved training model based on C&W model is proposed which can integrate emotional information and part of speech information in the training process of word embedding. The evaluation of data sets of NLP&CC’2013 is used to compare experimental results with different models. The experimental results show that the C&W-SP model which combines emotion information and part of speech information has the best performance and confirm the effectiveness of the proposed method.